package com.shenfc.fxzj.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;

/**
 * 作者：沈飞超
 * 功能描述：
 * 创建日期：2018/4/3 10:48
 */
@Component
public class ScheduledTasks {

    private static final Logger log = LoggerFactory.getLogger(ScheduledTasks.class);

    private static final SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss");

//    @Scheduled(fixedRate = 5000)
//    public void reportCurrentTime() {
//        log.info("The time is now {}", dateFormat.format(new Date()));
//    }
//
//    @Scheduled(cron = "0 0 4 * * ? ")
//    public void executePayOrderCheck() {
//        log.info("The time is now {}", dateFormat.format(new Date()));
//    }
}